//model.preferences = preferences.value;